<!--
 * @Author: your name
 * @Date: 2021-12-14 14:12:11
 * @LastEditTime: 2022-05-27 16:14:49
 * @LastEditors: yan_hai_dong 891236760@qq.com
 * @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 * @FilePath: \starlight_cat\src\views\config\addArtist\component\myPanel\index.vue
-->
<template>
  <div :class="`panel ${className}`">
    <div class="panel-header">
      <div class="title">
        <slot name="title">
          <span>{{ title }}</span>
        </slot>
      </div>
      <div class="title-right"><slot name="title-right"></slot></div>
    </div>
    <div class="panel-body">
      <slot></slot>
    </div>
  </div>
</template>

<script>
  export default {
    name: 'MyPanel',
    props: {
      title: {
        type: String,
        default: 'title',
      },
      className: {
        default: '',
        type: String,
      },
    },
  }
</script>

<style lang="scss" scoped>
  .panel {
    .panel-header {
      height: 40px;
      display: flex;
      align-items: center;
      span {
        display: inline-block;
        line-height: 14px;
        height: 14px;
        border-left: 3px solid #3f8cff;
        padding-left: 5px;
        font-size: 14px;
        font-family: PingFangSC-Medium, PingFang SC;
        font-weight: 500;
        color: #2a304d;
      }
    }
    .panel-body {
    }
  }
</style>
